Skip to content

[sys] Add the 3.14 _jit 'module'#15692

Merged
JelleZijlstra merged 13 commits intopython:mainfrom
lambda-abstraction:py314-sys-jit
May 4, 2026
Merged

[sys] Add the 3.14 _jit 'module'#15692
JelleZijlstra merged 13 commits intopython:mainfrom
lambda-abstraction:py314-sys-jit

Conversation

@lambda-abstraction
Copy link
Copy Markdown
Contributor

Type annotations for sys._jit
To handle the fact that it is a module despite not being importable, i adopted the approach used for sys.monitoring from #10890

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread stdlib/sys/__init__.pyi Outdated
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Comment thread stdlib/@tests/test_cases/sys/check_jit.py Outdated
…irmed

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
- pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...")  [var-annotated]

@JelleZijlstra
Copy link
Copy Markdown
Member

I'm a bit suspicious about the mypy-primer hit, as it seems unrelated to the PR; maybe there's a nondeterminism bug in mypy. I'll investigate that some more.

@JelleZijlstra JelleZijlstra merged commit 483fd73 into python:main May 4, 2026
51 checks passed
@srittau
Copy link
Copy Markdown
Collaborator

srittau commented May 4, 2026

I'm a bit suspicious about the mypy-primer hit, as it seems unrelated to the PR; maybe there's a nondeterminism bug in mypy. I'll investigate that some more.

We've seen the same primer hit in other PRs. So there's certainly some weirdness, but unrelated to this PR.

@JelleZijlstra
Copy link
Copy Markdown
Member

I had Codex look at it and I think it figured it out, I'll send a PR to mypy once I confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants